﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace TestTool
{
    class Program
    {
        static void Main(string[] args)
        {
            Stopwatch timer = new Stopwatch();
            TimeSpan lastTime = new TimeSpan();
            timer.Start();
            for (int i = 0; i < 20; i++)
            {
                //Console.WriteLine(timer.Elapsed.Milliseconds);
                Console.WriteLine(timer.Elapsed.TotalMilliseconds - lastTime.TotalMilliseconds);
                //Console.WriteLine(timer.ElapsedTicks);
                System.Threading.Thread.Sleep(500);
                lastTime = timer.Elapsed;
            }
            Console.Read();
        }
    }
}
